package cn.itsource.ymcc.feignclient;

import cn.itsource.ymcc.domain.Login;
import cn.itsource.ymcc.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-uaa",fallbackFactory = LoginFallbackFactory.class)
public interface LoginFeignClient {
    @PostMapping("/login/save")
    JsonResult saveOrUpdate(@RequestBody Login login);
}
